package com.neusoft.neu24.nep.controller;

import com.neusoft.neu24.nep.entity.CommonResult;
import com.neusoft.neu24.nep.entity.Order;
import com.neusoft.neu24.nep.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/o")
@CrossOrigin("*")
public class OrderController {
    @Autowired
    IOrderService orderService;


    @PostMapping("/new")
    public CommonResult newOrder(@RequestBody Order order) {
        return orderService.newOrder(order);
    }


}
